// logger.js
const slice = Array.prototype.slice
const {log} = console

function logger(namespace) {
    return function(){
        let args = slice.call(arguments)
        log.apply(null, [namespace].concat(args))
    }
}

module.exports = logger